package Information;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author MinamiKotori
 */
public class CommentInfo implements Serializable {
    /**
     * 评论所需要的用户、时间、评论内容
     */
    private UserInfo userInfo;
    private String commentTime;
    private String content;

    public CommentInfo(UserInfo userInfo, String content) {
        this.userInfo = userInfo;
        this.commentTime = new SimpleDateFormat("MM-dd hh:mm").format(new Date());
        this.content = content;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
